<script setup>
import {useMoneyStore} from "../store/money.js";

let moneyStore = useMoneyStore();

function clickBtn1() {
  moneyStore.win(100);
}

function clickBtn2() {
  moneyStore.pay(5);
}
</script>

<template>
<div>
  <button @click="clickBtn1">刮刮乐</button>
  <button @click="clickBtn2">买棒棒糖</button>
</div>
</template>

<style scoped>

</style>